package gof_003_行为型_Behavioral.gof_005_责任链_ChainOfResponsibility.gof_002_Chain;

public class LeaderBoss extends Leader{
    public LeaderBoss(String leaderName) {
        super(leaderName);
    }

    @Override
    public String handle(AskForLeave askForLeave) {
        double days = askForLeave.getDays();
        System.out.println("向老板请假...");
        if(days<=7){
            System.out.println("老板同意!!!");
        }else{
            System.out.println("拒绝!!!");
        }
        return null;
    }
}
